package pe.gastobien.app.layer.service;

import java.util.List;
import pe.gastobien.app.domain.*;
import pe.gastobien.app.layer.dao.impl.CategoryDetailDaoImp;
import pe.gastobien.app.layer.dao.interfaces.CategoryDetailDao;

public class CategoryDetailService {
	
	public List<CategoryDetail> getCategoryDetailByCategoryId(int categoryId)
	{
		CategoryDetailDao dao = new CategoryDetailDaoImp();
		return dao.getCategoryDetailByCategoryId(categoryId);
	}
	
	public void AddCategoryDetail(CategoryDetail CategoryDetail)
	{
		CategoryDetailDao dao = new CategoryDetailDaoImp();
	 dao.save(CategoryDetail);
	}
	
	public void delete(CategoryDetail t) {
		CategoryDetailDao dao = new CategoryDetailDaoImp();
		 dao.delete(t);
	}
}
